home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / bootslow.zip / SOURCE.ZIP / MAKEFILE < prev    next >
Text File  |  1991-08-12  |  2KB  |  100 lines

  1. #
  2. # Makefile for TASM/tlink
  3. # Tested on TASM 2.0
  4. #
  5. #
  6. ## SlowDown for self-booting software
  7. ##
  8. ## BOOTSLOW
  9. ##
  10. ## Copyright 1991 Alexander R. Pruss
  11. ##
  12. ## May be freely distributed, modified and used provided that no copyright
  13. ## messages are removed, and this sentence together with the next are
  14. ## always included in unmodified form.  If you like this program a lot, you are
  15. ## invited to show your appreciation by making a tax-deductible donation to
  16. ## the Pro-Life or Anti-Abortion movement, but are under no obligation, moral
  17. ## or otherwise to do so (especially if you disagree with the goals of this
  18. ## movement.)
  19. #
  20.  
  21.  
  22. ## What I like:
  23. AS = e:\prg\tasm.exe /ml /t
  24. LD = e:\prg\tlink.exe /c
  25. E2B = e:\dos\exe2bin.exe
  26. ARCA = e:\arc\arj a -jm -z
  27. ARCL = e:\arc\arjlock.bat
  28. ZIP = e:\arc\pkzip
  29. UUE = e:\nix\uuencode
  30. EXISTQ = if exist
  31.  
  32. # ## What is portable:
  33. # AS = tasm /ml /t
  34. # LD = tlink /c
  35. # E2B = exe2bin
  36. # ARCA = arj a -jm -z
  37. # ARCL = nonexistent\archive\locker       # this should not exist
  38. # ZIP = pkzip
  39. # UUE = uuencode
  40. # EXISTQ = if exist
  41.  
  42. COM = /t
  43. AEXT = .arj
  44. ZEXT = .zip
  45. RM = del
  46.  
  47. EXES = bootsec.bin mkboot.com mktable.com slow.com whirr.com
  48. SRCS = bootsec.asm mkboot.asm mktable.asm slow.asm whirr.asm macros.inc bins.cmt srcs.cmt makefile
  49. DOCS = slow.doc read.me history.doc
  50.  
  51. all: $(EXES)
  52.  
  53. .asm.obj:
  54.          $(AS) $<
  55.  
  56. .obj.com:
  57.          $(LD) $(COM) $<
  58.  
  59. .obj.exe:
  60.          $(LD) $<
  61.  
  62. .obj.bin:
  63.          $(LD) $<
  64.          $(E2B) $*.exe $*.bin
  65.          $(RM) $*.exe
  66.  
  67. clean:
  68.          $(RM) *.map
  69.          $(RM) *.obj
  70.          $(RM) bootsl-s$(AEXT)
  71.  
  72.  
  73. archive: bootslow$(AEXT) bootslow$(ZEXT)
  74.  
  75. distr: bslow-arj.uue bslow-zip.uue
  76.  
  77. bslow-arj.uue: bootslow$(AEXT)
  78.          $(UUE) bootslow$(AEXT) <bootslow$(AEXT) > $<
  79.  
  80. bslow-zip.uue: bootslow$(ZEXT)
  81.          $(UUE) bootslow$(ZEXT) <bootslow$(ZEXT) > $<
  82.  
  83. source$(AEXT): $(SRCS)
  84.          $(EXISTQ) $< $(RM) $<
  85.          $(ARCA)srcs.cmt $< $(SRCS)
  86.          $(EXISTQ) $(ARCL) $(ARCL) $<
  87.  
  88. bootslow$(AEXT): $(EXES) $(DOCS) source$(AEXT) bins.cmt
  89.          $(EXISTQ) $< $(RM) $<
  90.          $(ARCA)bins.cmt $< $(EXES) $(DOCS) source$(AEXT)
  91.          $(EXISTQ) $(ARCL) $(ARCL) $<
  92.  
  93. source$(ZEXT): $(SRCS)
  94.          $(EXISTQ) $< $(RM) $<
  95.          $(ZIP) $< $(SRCS)
  96.  
  97. bootslow$(ZEXT): $(EXES) $(DOCS) source$(ZEXT) bins.cmt
  98.          $(EXISTQ) $< $(RM) $<
  99.          $(ZIP) $< $(EXES) $(DOCS) source$(ZEXT)
  100.